/**
 * Classe responsavel por criar uma view isometrica para o mundo (World)
 */
 
import corejuliano.gameelement.perspective.*;
import corejuliano.designpattern.mvc.*;
 
class corejuliano.gameelement.world.WorldIsometricView extends IsometricView 
{
	private var worldIsometricCanvas:MovieClip;
	
	public function WorldIsometricView(canvas:MovieClip,model:Model)
	{		
		super(canvas,model);
		worldIsometricCanvas = canvas.createEmptyMovieClip("worldisometriccanvas",3);		
	}
	
	public function createMovieClip(canvas:MovieClip):Void
	{
		var id:String = model.getId();
		id += "_isometric";
		canvas.attachMovie(id, id, 1);	
	}
	
	public function getWorldIsometricCanvas():MovieClip
	{
		return worldIsometricCanvas;
	}
	
	public function destroy()
	{
		worldIsometricCanvas = null;
		super.destroy();
	}
	
	public function toString(Void):String 
	{
		return "corejuliano.gameelement.world.WorldIsometricView";
	}
}